﻿<Application x:Class="Demo01.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Controls="clr-namespace:Demo01.Controls"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
         
    	<SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
    	<SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
    	<SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
    	<Style TargetType="{x:Type Controls:ElephantBox}">
    		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
    		<Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border}"/>
    		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    		<Setter Property="BorderThickness" Value="1"/>
    		<Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
    		<Setter Property="HorizontalContentAlignment" Value="Left"/>
    		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    		<Setter Property="AllowDrop" Value="true"/>
    		<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
    		<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type TextBox}">
    					<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="Layer_1" Width="500" Height="500" Canvas.Left="0" Canvas.Top="0">
	<Path Width="305.773" Height="175.252" Canvas.Left="137.167" Canvas.Top="284.416" Stretch="Fill" StrokeThickness="14" StrokeLineJoin="Round" Stroke="#FF230FD2" Data="F1 M 169,306C 169,333.424 169.549,361.543 162.333,388C 159.875,397.015 153.614,404.584 150.333,413.333C 149.984,414.264 149.314,415.057 149,416C 148.642,417.075 148.916,418.362 148.333,419.333C 147.525,420.681 145.872,421.359 145,422.667C 144.492,423.429 143.862,424.548 144.333,425.333C 145.97,428.062 150.619,426.419 153.667,427.333C 161.055,429.55 168.658,431.232 176.333,432C 185.247,432.891 194.255,433.39 203,435.333C 207.173,436.261 211.494,436.406 215.667,437.333C 216.561,437.532 217.439,437.801 218.333,438C 219.439,438.246 220.625,439.113 221.667,438.667C 222.58,438.275 222.901,436.989 223,436C 223.135,434.655 222.539,433.336 222.333,432C 222.094,430.447 221.779,428.901 221.667,427.333C 221.556,425.782 221.667,424.222 221.667,422.667C 221.667,411.111 221.667,399.556 221.667,388C 221.667,383.778 221.667,379.556 221.667,375.333C 221.667,374.444 221.667,373.556 221.667,372.667C 221.667,371.778 220.927,370.493 221.667,370C 222.776,369.26 224.333,370 225.667,370C 227.222,370 228.778,370 230.333,370C 234.579,370 238.769,370.981 243,371.333C 256.066,372.422 269.222,371.333 282.333,371.333C 294.756,371.333 307.015,367.935 319,364.667C 323.272,363.502 327.344,359.706 331.667,360.667C 335.655,361.553 335.603,367.98 336.333,372C 337.503,378.434 337.946,385.024 339.667,391.333C 342.092,400.227 346.234,408.813 347,418C 347.572,424.865 348.351,431.912 347,438.667C 346.407,441.631 344.667,444.329 344.333,447.333C 344.211,448.438 343.548,449.881 344.333,450.667C 345.477,451.811 347.396,451.786 349,452C 350.762,452.235 352.562,451.852 354.333,452C 363.194,452.738 372.108,452.667 381,452.667C 394.158,452.667 407.221,450.426 420.333,449.333C 423.434,449.075 426.556,449.333 429.667,449.333C 430.778,449.333 431.896,449.456 433,449.333C 433.911,449.232 435.094,449.382 435.667,448.667C 436.222,447.973 435.777,446.882 435.667,446C 435.553,445.091 435.222,444.222 435,443.333C 434.097,439.719 432.975,436.155 431.667,432.667C 427.976,422.825 426.214,412.341 424.333,402C 421.112,384.281 415.99,366.863 409.667,350C 406.735,342.181 405.241,332.881 399,327.333C 388.369,317.883 375.526,309.865 361.667,306.667C 348.442,303.615 334.308,307.328 321,304.667C 309.783,302.423 298.411,300.815 287,300C 281.731,299.624 276.814,297.188 271.667,296C 264.654,294.382 257.316,294.412 250.333,292.667C 245.375,291.427 240.111,292.667 235,292.667C 227.663,292.667 220.337,292 213,292C 202.546,292 191.584,290.028 181.667,293.333C 176.46,295.069 172.057,298.707 167.667,302"/>
	<Path Width="313.088" Height="349.03" Canvas.Left="168.224" Canvas.Top="145.321" Stretch="Fill" StrokeThickness="14" StrokeLineJoin="Round" Stroke="#FF230FD2" Fill="#FF0096FF" Data="F1 M 215,183.333C 229.292,171.899 245.165,160.782 263,156.667C 286.618,151.216 311.548,151.588 335.667,154C 342.263,154.66 348.437,157.729 355,158.667C 366.847,160.359 377.996,165.97 388.333,172C 394.952,175.861 403.207,177.638 408.333,183.333C 409.2,184.296 409.754,185.508 410.333,186.667C 410.869,187.737 411.003,189.004 411.667,190C 420.398,203.097 429.274,216.283 435.667,230.667C 438.15,236.254 439.137,242.434 441.667,248C 455.946,279.414 466.827,312.716 473,346.667C 475.068,358.038 472.707,369.816 473.667,381.333C 475.438,402.594 473,423.999 473,445.333C 473,452.892 472.333,460.441 472.333,468C 472.333,472.246 471.527,476.454 471,480.667C 470.89,481.549 471.11,482.451 471,483.333C 470.886,484.242 470.981,485.352 470.333,486C 465.712,490.621 457.867,482.067 451.667,480C 445.749,478.027 439.2,479.356 433,478.667C 424.825,477.758 416.559,478 408.333,478C 404.309,478 399.608,481.673 396.333,479.333C 395.279,478.58 395,477.111 394.333,476C 393.667,474.889 392.963,473.799 392.333,472.667C 382.934,455.747 377.529,435.237 379.667,416C 380.49,408.592 382.742,401.396 383.667,394C 384.026,391.125 386.143,387.596 384.333,385.333C 383.778,384.639 382.499,385.021 381.667,385.333C 380.626,385.723 379.937,386.737 379,387.333C 375.646,389.468 372.024,391.19 368.333,392.667C 356.064,397.574 344.081,404.131 331,406C 315.524,408.211 299.966,410.667 284.333,410.667C 278.958,410.667 273.675,409.26 268.333,408.667C 267.207,408.542 266.106,408.246 265,408C 264.106,407.801 262.92,406.629 262.333,407.333C 261.327,408.54 261.809,410.435 261.667,412C 261.586,412.885 261.667,413.778 261.667,414.667C 261.667,420.293 262.358,426.065 264.333,431.333C 267.002,438.451 268.684,445.913 270.333,453.333C 271.35,457.909 273.284,465.429 269,467.333C 264.459,469.351 259.278,469.506 254.333,470C 240.359,471.397 226.377,473.333 212.333,473.333C 206.111,473.333 199.889,473.333 193.667,473.333C 189.642,473.333 183.467,475.6 181.667,472C 179.57,467.807 181.863,462.548 183,458C 184.464,452.143 184.333,446 185,440C 186.963,422.331 187.703,404.238 185,386.667C 184.172,381.282 182.641,376.027 181.667,370.667C 180.114,362.129 182.321,353.114 180.333,344.667C 176.854,329.88 175.667,314.524 175.667,299.333C 175.667,283.677 172.945,266.092 181,252.667"/>
	<Path Width="218.457" Height="321.839" Canvas.Left="51.595" Canvas.Top="137.161" Stretch="Fill" StrokeThickness="14" StrokeLineJoin="Round" Stroke="#FF230FD2" Fill="#FF0096FF" Data="F1 M 215,202C 205.878,202 196.32,200.449 187.667,203.333C 178.388,206.426 169.462,210.489 160.333,214C 158.823,214.581 157.213,214.858 155.667,215.333C 154.323,215.747 152.901,215.994 151.667,216.667C 143.317,221.221 136.64,230.106 134.333,239.333C 132.605,246.246 131.603,253.68 133,260.667C 134.267,267.001 138.573,272.329 141.667,278C 148.931,291.318 154.442,306.462 165.667,316.667C 169.088,319.777 173.26,321.947 177,324.667C 180.594,327.281 183.45,331.261 187.667,332.667C 202.43,337.588 219.884,339.78 234.333,334C 235.501,333.533 235.954,332.031 237,331.333C 245.263,325.825 255.557,321.041 259.667,312C 263.739,303.041 263,292.507 263,282.667C 263,273.545 263.456,264.278 261.667,255.333C 261.057,252.283 262.01,249.092 261.667,246C 260.815,238.333 258.38,230.923 257,223.333C 254.083,207.291 251.924,189.854 242.333,176.667C 233.367,164.338 220.129,154.154 205.667,149.333C 188.964,143.766 170.47,143.15 153,145.333C 140.018,146.956 126.66,151.301 116.333,159.333C 107.912,165.883 101.313,175.307 97.6667,185.333C 93.6453,196.392 93.3078,208.461 91,220C 87.9381,235.309 85.5865,251.118 87,266.667C 89.1474,290.288 98.7571,312.664 103,336C 106.699,356.346 108.289,382.711 93.6667,397.333C 87.9469,403.053 78.4223,404 70.3333,404C 69.4444,404 68.5556,404 67.6667,404C 66.7778,404 65.8677,404.193 65,404C 63.8318,403.74 62.802,403.045 61.6667,402.667C 60.7974,402.377 59.4714,401.214 59,402C 57.2104,404.983 61.8232,408.384 63.6667,411.333C 67.5121,417.486 72.2439,423.18 77.6667,428C 78.7302,428.945 79.6423,430.089 80.3333,431.333C 80.7783,432.134 80.5144,433.223 81,434C 83.4166,437.867 87.1092,440.776 90.3333,444C 91.2496,444.916 91.4171,446.417 92.3333,447.333C 93.2496,448.25 94.8234,448.35 95.6667,449.333C 96.2629,450.029 95.4171,452 96.3333,452C 97.3271,452 97.4256,450.297 97.6667,449.333C 97.8823,448.471 97.6667,447.556 97.6667,446.667C 97.6667,443.744 98.2911,440.836 99,438C 101.045,429.819 103.868,421.83 107,414C 110.511,405.222 117.68,398.186 121,389.333C 123.725,382.066 125.631,374.397 126.333,366.667C 127.557,353.205 122.085,339.966 119.667,326.667C 118.389,319.64 116.781,312.42 117.667,305.333C 118.05,302.27 120.834,300.032 122.333,297.333C 125.921,290.876 138.568,283.424 143,289.333"/>
	<Path Width="137.542" Height="165.705" Canvas.Left="346.817" Canvas.Top="171.295" Stretch="Fill" StrokeThickness="14" StrokeLineJoin="Round" Stroke="#FF230FD2" Data="F1 M 413,190C 420.115,188.577 425.703,182.947 432.333,180C 436.819,178.006 442.129,178.058 447,178.667C 451.161,179.187 454.483,182.605 457.667,185.333C 464.733,191.39 469.819,199.92 473,208.667C 476.122,217.252 479.905,228.293 475,236C 474.236,237.2 473.404,238.396 472.333,239.333C 471.585,239.988 470.421,240.02 469.667,240.667C 461.128,247.985 451.466,255.743 440.333,257.333C 425.316,259.479 410.095,259.824 395,261.333C 380.711,262.762 360.832,264.211 355,277.333C 351.583,285.021 356.248,294.646 360.333,302C 362.314,305.566 363.449,309.782 366.333,312.667C 371.267,317.601 376.38,323.127 383,325.333C 389.7,327.567 396.741,328.615 403.667,330"/>
	<Ellipse Width="260" Height="135" Canvas.Left="172.5" Canvas.Top="7.5" Stretch="Fill" StrokeThickness="5" StrokeLineJoin="Round" Stroke="#FF000000" Fill="#FFFFFFFF"/>
	<Path Width="101.579" Height="117.025" Canvas.Left="275.321" Canvas.Top="126.833" Stretch="Fill" StrokeThickness="5" StrokeLineJoin="Round" Stroke="#FF000000" Fill="#FFFFFFFF" Data="F1 M 310,137.333C 311.894,143.961 315.662,149.98 317.333,156.667C 320.515,169.394 318.667,182.881 318.667,196C 318.667,204.692 319.895,213.929 316.667,222C 314.035,228.58 309.143,235.122 302.667,238C 295.085,241.37 286.297,241.333 278,241.333C 277.111,241.333 279.78,241.389 280.667,241.333C 283.337,241.166 286.011,240.999 288.667,240.667C 292.908,240.136 297.074,239.022 301.333,238.667C 310.307,237.919 318.902,234.495 327.333,231.333C 332.743,229.305 338.526,227.872 343.333,224.667C 363.183,211.433 376.959,183.672 374,160C 372.606,148.85 366.742,138.323 360,129.333"/>
    						<ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" Canvas.Left="208.276" Canvas.Top="43.04" Height="60.96" Width="185.724"/>
</Canvas>

    					</Border>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Opacity" TargetName="border" Value="0.56"/>
    						</Trigger>
    						<Trigger Property="IsMouseOver" Value="true">
    							<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.MouseOver.Border}"/>
    						</Trigger>
    						<Trigger Property="IsKeyboardFocused" Value="true">
    							<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.Focus.Border}"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    		<Style.Triggers>
    			<MultiTrigger>
    				<MultiTrigger.Conditions>
    					<Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
    					<Condition Property="IsSelectionActive" Value="false"/>
    				</MultiTrigger.Conditions>
    				<Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
    			</MultiTrigger>
    		</Style.Triggers>
    	</Style>
         
    </Application.Resources>
</Application>
